package me.nibo.xlistview.simple;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.ArrayAdapter;

import me.nibo.xlistview.lib.XListView;


public class MainActivity extends ActionBarActivity {

    private XListView xListView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        xListView = (XListView) findViewById(R.id.xlist_view);
        xListView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1,
                                                      new String[]{"小明", "小红"}));
        xListView.setPullLoadEnable(false);

    }

}
